<?php

namespace App\Utils;

use Illuminate\Http\Request;

class Response
{
    public static function ok($data, $message, $code = 200, $statusCode = 200)
    {
        return response()->json(['data' => $data, 'message' => $message, 'code' => $code], $statusCode);
    }

    public static function fail($data, $message, $code = 500, $statusCode = 200)
    {
        return response()->json(['data' => $data, 'message' => $message, 'code' => $code], $statusCode);
    }
}
